<div class="layui-row">
    {:builderFormInit([
        'title' => '商品名称',
        'name' => 'title',
        'value' => !empty($info) ? $info->title : '',
        'req' => true,
        'md' => 12
    ])->getFormItemInputHtml()}

    <?php echo builderFormInit([
        'title' => '所属专区',
        'name' => 'type_id',
        'options' => \app\common\model\ProductType::column('title', 'id'),
        'value' => !empty($info) ? $info->type_id : ''
    ])->getFormItemSelectHtml('type_id');?>

    <!-- 引入分类  -->
    {include file="product/cope/cate" /}
    <!-- 引入分类End -->

    {:builderFormInit([
        'title' => '虚拟销量',
        'name' => 'virtual_sales',
        'value' => !empty($info) ? $info->virtual_sales : '',
        'md' => 12,
        'remark' => '如若填写，前台销量将展示虚拟销量+实际销量'
    ])->getFormItemInputHtml('number')}

    {:builderFormInit([
        'title' => '排序',
        'name' => 'sort',
        'value' => !empty($info) ? $info->sort : '',
        'md' => 12
    ])->getFormItemInputHtml('number')}
</div>